<script setup>

import {RouterView} from "vue-router";

const props = defineProps({
  title: {
    type: String,
    default: '标题'
  }
})
</script>

<template>
  <el-card class="card" shadow="hover">
    <template #header>
      <h1>{{ title }}</h1>
    </template>
      <slot name="search"></slot>
    <slot><RouterView/></slot>
  </el-card>
</template>

<style scoped lang="scss">
.card {
  overflow-y: scroll;
  height: 100%;
}
</style>